import 'package:flutter/material.dart';

class MessageListCom extends StatelessWidget{
  String title;
  String content;
  String time;
  MessageListCom(this.title,this.content,this.time);
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: <Widget>[
        Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: <Widget>[
            Text(title),
            Text(time)
          ],
        ),
        SizedBox(
          height: 10.0,
        ),
        Text(content,
          style: TextStyle(
            fontSize: 14
          ),
        )
      ],
    );
  }

}